/*
 * Use or Copy is free, but retain author declaration.
 */
package pyip.lib.mixtool.test.simplehttpclient;

import java.io.IOException;

import pyip.lib.mixtool.simplehttpclient.HttpClient;
import pyip.lib.mixtool.simplehttpclient.HttpPost;
import pyip.lib.mixtool.simplehttpclient.RequestConfig;

/**
 * @author yepeng
 * @date 2015年6月5日
 */
public class TrackSpider {
    public static void main(String[] args) {
        // String url = "http://khcx.gdpost.com.cn/mail/mgnt/InterSatPostState.do?method=firstMailBatch2";
        String url = "http://127.0.0.1/api/pickup/get_pickup_vehicle_trips_list";

        HttpPost request = new HttpPost(url);
        RequestConfig config = new RequestConfig();
        request.setConfig(config);
        request.addParameter("testParams0", null);
        request.addParameter("testParams1", new String[] { "" });
        request.addParameter("testParams2", new String[] { "", "" });
        request.addParameter("method", new String[] { "firstMailBatch2" });
        request.addParameter("reqPage", new String[] { "1" });
        request.addParameter("pickupDriverPhoneNo", new String[] { "13715100226" });
        try {
            HttpClient s = new HttpClient();
            s.execute(request);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
